<script type="text/javascript" src="/js/system/common.js"></script>
<script>
    $(function () {
        //顶：点赞
        $("._j_support_btn").click(function () {

            var sid = $(this).data("tid");
            $.get("/travel/travelThumbup", {sid: sid}, function (data) {
                if (data.success) {
                    $(".support_num").html(data.data.thumbsupnum);
                    popup("顶成功啦"); //

                } else {
                    if (data.code == 102) {
                        popup(data.msg);
                    } else {
                        popup("今天你已经顶过了"); //
                    }
                }
            });
        })
    })
</script>

<#list pageInfo.list as t>
<div class="tn-item clearfix">
    <div class="tn-image">
        <a href="javascript:;" target="_blank">
            <img class="lazy" width="220" height="150" alt="${t.subTitle!}"
                 src="${t.coverUrl}" style="display: inline;">
        </a>
    </div>
    <div class="tn-wrapper" data-focus="" data-topsort="" data-star="0">
        <dl>
            <dt>
                <a href="/travel/detail?id=${t.id!}" class="title-link" target="_blank">${t.title}</a>
            </dt>
            <dd><a href="/travel/detail?id=${t.id!}" target="_blank">${t.summary!}</a>
            </dd>
        </dl>
        <div class="tn-extra">
                <span class="tn-ding">
                    <a class="btn-ding _j_support_btn" data-japp="articleding"
                       data-iid="12663570" data-tid="${t.id!}" data-vote="5"></a>
                    <em id="topvote12663570" class="support_num">${t.thumbsupnum!0}</em>
                </span>
            <span class="tn-user"><a href="javascript:;" target="_blank"
                                     rel="nofollow"><img
                    src="${(t.author.headImgUrl)!}">${(t.author.nickname)!}</a></span>
            <span class="tn-nums"><i></i>${t.viewnum!0}/${t.favornum!0}</span>
        </div>
    </div>
</div>
<br><br>
</#list>
<#include "../common/page.ftl">
